<?php


namespace app\websocket\model;


use think\Model;

class User extends Model
{
    public static function getUserByName($name){
        $UserClass=new self();
        return $UserClass->where('user_name',$name)->where('status',1)->where('del_flag',0)->field('user_name,role,id')->find();
    }

}